import {http} from '@/utils/http/axios';

export interface BasicResponseModel<T = any> {
  code: number;
  message: string;
  meta: T;
}

export interface BasicPageParams {
  pageNumber: number;
  pageSize: number;
  total: number;
}

export interface AddGameAnchorParams {
  id: number;
  name: string;
  chan_id: string;
  user_id: string;
  iosCommand: string;
  createTime: string;
  updateTime: string;
  
  
}



/**
 * 添加游戏主播
 * @param params
 */
export function addGameAnchor(params: AddGameAnchorParams) {
  return http.request({
    url: '/system/game/anchor/add',
    method: 'POST',
    params,
  });
}

/**
 * 删除主播
 */
export function deleteGameAnchor(params) {
  return http.request({
    url: '/system/game/anchor/delete',
    method: 'POST',
    params,
  });
}

export function getGameAnchorList(params) {
  return http.request({
    url: '/system/game/anchor/all',
    method: 'post',
    params,
  });
}

export function updateGameAnchor(params) {
  return http.request({
    url: '/system/game/anchor/update',
    method: 'POST',
    params,
  });
}

export function getGameAnchorInfo(params) {
  return http.request({
    url: '/system/game/anchor/info',
    method: 'post',
    params,
  });
}

export function GameAnchorBindChan(params) {
  return http.request({
    url: '/system/game/anchor/bindChan',
    method: 'POST',
    params,
  });
}
